import request from '@/utils/request'
// 查询系统密钥列表
export function getSysKey(data) {
  return request({
    url: '/sys/api/getSysApiKeyList',
    method: 'post',
    data: data
  })
}
// 查询系统密钥列表
export function changeStatus(data) {
  return request({
    url: '/sys/api/changeStatus',
    method: 'post',
    data: data
  })
}
// 查询系统密钥列表
export function addAuth(data) {
  return request({
    url: '/sys/api/changeStatus',
    method: 'post',
    data: data
  })
}
// 新增系统密钥
export function saveSysApiKey(data) {
  return request({
    url: '/sys/api/saveSysApiKey',
    method: 'post',
    data: data
  })
}
// 删除系统密钥
export function deleteSysApi(data) {
  return request({
    url: '/sys/api/deleteSysApi',
    method: 'post',
    data: data
  })
}
// 删除系统密钥
export function getSysApiKeyById(id) {
  return request({
    url: `/sys/api/getSysApiKeyById/${id}`,
    method: 'get'
  })
}
// 更新系统密钥
export function updateSysKeyApi(data) {
  return request({
    url: '/sys/api/updateSysKeyApi',
    method: 'post',
    data: data
  })
}
export function createSign() {
  return request({
    url: '/sys/api/createSign',
    method: 'get'
  })
}

